package com.library.settings.mapper;

import com.library.settings.pojo.Admin;
import java.util.List;
import java.util.Map;

public interface AdminMapper {
    int deleteByPrimaryKey(String adminAccount);

    int insert(Admin row);

    Admin selectByPrimaryKey(String adminAccount);

    List<Admin> selectAll();

    int updateByPrimaryKey(Admin row);

    /**
     * 根据adminAccount和adminPassword查询管理员信息
     * @param map
     * @return
     */
    Admin queryAdminByLogActAndPassword(Map<String,Object> map);

    /**
     * 根据adminId更新admin
     * @param admin
     * @return
     */
    int updateAdmin(Admin admin);
}